package com.ashun.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by lvenle on 2017/6/13.
 */
@RestController
public class LianxiContoller {

    @RequestMapping(value = "/lianxi" , method = RequestMethod.POST)
    public ModelAndView lianxi(HttpServletRequest request, HttpServletResponse response){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("look");
        modelAndView.addObject("message","message");
        return modelAndView;
    }
}
